<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ page import="com.vo.Student" %>
<%@ page import="com.dao.StudentDao" %>
<html>
<head>
    <title>注册</title>
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8"); // 设置请求的字符编码为 UTF-8
    String studentname = request.getParameter("studentname");
    String studentno = request.getParameter("studentno");
    String pwd = request.getParameter("pwd");
    StudentDao studentDao = new StudentDao();
    studentDao.stuRegister(studentno,studentname,pwd);
    out.println("<script type='text/javascript'>alert('注册成功');window.location.href='login.jsp'</script>");
%>
</body>
</html>
